# run_all.py
""" 
author: Men Dong Yang
create_time: 2025/6/22 11:07:26
description: 运行所有的测试用例 并生成测试报告
"""
import re
from datetime import datetime

import pytest

if __name__ == '__main__':
    date = re.sub(r'[ :-]', '_', str(datetime.now()).split('.')[0])
    pytest.main([f'--html=reports/report{date}.html', '--self-contained-html'])

    # print(date)
    # print(str(datetime.now()))
    # print(str(datetime.now()).split('.'))
    # print(str(datetime.now()).split('.')[0])

